<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head></head>
<body>
<table border="0" width="600px">
    <tr>
        <td align="center" style="font-size:24px; color:#666"> 员工添加</td>
    </tr>
    <tr>
        <td align="right" >
            <a href="javascript:document.getElementById('saveForm').submit()">保存</a> &nbsp;&nbsp;
            <a href="javascript:history.go(-1)">退回</a>
        </td>
    </tr>
</table>
<br/>

<s:form id="saveForm" action="employee_update.action" method="post" theme="simple">
    <input type="hidden" name="eid" value="${model.eid}"/>
    <table border='0' cellpadding="0"  cellspacing="10">
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="username" value="${model.username}" /></td>
            <td>密码：</td>
            <td><input type="password" name="password" value="${model.password }" /></td>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><input type="text" name="ename" value="${model.ename }" /></td>
            <td>性别：</td>
            <td><s:radio name="sex" list="{'男','女'}" value="%{model.sex }" /></td>
        </tr>
        <tr>
            <td>出生日期：</td>
            <td><input type="date" name="birthday" value="<s:date name="model.birthday" format="yyyy-MM-dd"/>" /></td>
            <td>入职时间：</td>
            <td><input type="date" name="joinDate" value="<s:date name="model.joinDate" format="yyyy-MM-dd"/>" /></td>
        </tr>

        <tr>
            <td>所属部门：</td>
            <td>
                <s:select name="department.did" list="list" value="" listKey="did" listValue="dname" headKey="" headValue="--请选择--" />
            </select>
            </td>

            <td>编号：</td>
            <td><input type="text" name="eno" value="${model.eno }" /></td>
        </tr>
    </table>
</s:form>

</body>
</html>
